from django.conf.urls.defaults import *
from django.contrib.auth.forms import AuthenticationForm
from django.views.generic.simple import direct_to_template
from django.views.generic.simple import redirect_to

handler500 = 'djangotoolbox.errorviews.server_error'

urlpatterns = patterns('',
    (r'^$', direct_to_template, {'template': 'frontpage.html'}),
    (r'^home$', direct_to_template, {'template': 'frontpage.html'}),
    (r'^toolbar_page?', direct_to_template, {'template': 'toolbar_page.html'}),
    (r'^favicon\.ico$', redirect_to, {'url': '/media/pics/favicon.ico'}),
    
    (r'^algos/'       , include('algos.urls')),
    (r'^projects/'    , include('projects.urls')),
    (r'^articles/'    , include('articles.urls')),
    (r'^tractament/'  , include('tractament.urls')),
    (r'^linies/'      , include('linies.urls')),
    (r'^massmedia/'   , include('massmedia.urls')),
    (r'^contact/'     , include('contact.urls'))

)
